/*
 * @Author: CNN 969682281@qq.com
 * @Date: 2023-03-16 10:24:34
 * @LastEditors: 贺楠 1071780426@qq.com
 * @LastEditTime: 2024-05-08 16:52:19
 * @FilePath: \newMould_BHZ\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/logins.vue'
import DetailedClose from '../views/detailedClose.vue'


Vue.use(VueRouter)
const routes = [

    {
        path: '/',
        name: 'login',
        component: Login

    },
    {
        path: '/aa',
        name: 'table',
        component: () =>
            import('@/views/test/table.vue')

    },
    {
        path: '/map',
        name: 'map',
        component: () =>
            import('@/views/map.vue')

    },
    {
        path: '*',
        name: "NotFound",
        component: () =>
            import('@/views/404.vue')
    },
    {
        path: '/networkError',
        component: require('@/views/no-network.vue').default,
        name: 'networkError',
        meta: {
            title: '网络异常'
        }
    },
    //沥青详情跳转
    {
        path: '/pitchDetails',
        name: 'pitchDetails',
        component: () =>
            import('@/views/pitchManage/dyMonitorManage/pitchDetails/pitchDetails.vue')
    },
    {
        path: '/detailedClose',
        name: 'detailedClose',
        component: DetailedClose

    },
// 质量巡查信息管理
{
    path: '/patrolInformationDetail',
    name: 'patrolInformationDetail',

    component: () =>
        import('../views/QualityGridManage/patrolInformationDetail/index.vue')
    // 

},
    {
        path: '/loginfree', //免登陆
        name: 'loginfree',
        component: () =>
            import('../views/loginfree.vue')
    },
    {
        path: '/loginHttps', //免登陆
        name: 'loginHttps',
        component: () =>
            import('../views/loginHttps.vue')
    },
    // 韩磊跳张拉详情（图表详情）
    {
        path: '/detailedCurv',
        name: 'detailedCurv',
        component: () =>
            import('../views/TensionAndGrout/TensionManage/detailedCurv.vue')
    },
    {
        path: '/home',
        name: 'Home',
        component: Home,
        // redirect: "/aaa",
        children: [{
                path: '/tree', //树状图测试
                name: 'tree',
                component: () =>
                    import('../views/test/tree.vue')
            }, {
                path: '/select', //下拉框测试
                name: 'select',
                component: () =>
                    import('../views/test/select.vue')
            }, {
                path: '/upload', //文件上传
                name: 'upload',
                component: () =>
                    import('../views/test/upload.vue')
            },
            // 
            {
                path: '/codeGenerator', //代码生成器
                name: 'codeGenerator',
                component: () =>
                    import('../views/SysManage/minjManage/codeGenerator.vue')
            },
            {
                path: '/tt', //代码生成器
                name: 'tt',
                component: () =>
                    import('../views/test/tt.vue')
            },
            {
                path: '/zl', //代码生成器
                name: 'zl',
                component: () =>
                    import('../views/test/zl.vue')
            },
            {
                path: '/mould', //代码生成器
                name: 'mould',
                component: () =>
                    import('../views/test/mould.vue')
            },
            {
                path: '/rrrr', //代码生成器
                name: 'rrrr',
                component: () =>
                    import('../views/test/rrrr.vue')
            },
            // 
            // {
            //     path: '/Home1', //代码生成器
            //     name: 'Home1',
            //     component: () =>
            //         import('../views/test/Home1.vue')
            // },
            // AMapUI
            {
                path: '/index', //试验检测依据管理-----查看
                name: 'index',
                component: () =>
                    import('../views/index.vue')
            },

            // 系统业务数据字典

            {
                path: '/experiment', //试验检测依据管理-----查看
                name: 'experiment',
                component: () =>
                    import('../views/currencyManage/experiment')
            },
            {
                path: '/experimentText', //试验检测依据管理-----编辑
                name: 'experimentText',
                component: () =>
                    import('../views/currencyManage/experimentText')
            },
            {
                path: '/sample', //样品种类在线管理-----查看
                name: 'sample',
                component: () =>
                    import('../views/currencyManage/sample')
            },
            {
                path: '/instrument', //回弹仪器设备管理-----查看
                name: 'instrument',
                component: () =>
                    import('../views/currencyManage/instrument')
            },
            {
                path: '/instrumentText', //回弹仪器设备管理-----编辑
                name: 'instrumentText',
                component: () =>
                    import('../views/currencyManage/instrumentText')
            },
            {
                path: '/ProjectPage', //标段回弹工程划分-----查看
                name: 'ProjectPage',
                component: () =>
                    import('../views/currencyManage/ProjectPage.vue')
            },
            {
                path: '/ProjectPageText', //标段回弹工程划分-----编辑
                name: 'ProjectPageText',
                component: () =>
                    import('../views/currencyManage/ProjectPageText.vue')
            },
            {
                path: '/htOverSeting', //回弹钢保比和流程
                name: 'htOverSeting',
                component: () =>
                    import('../views/currencyManage/htOverSeting/index.vue')
            },
            // 系统业务数据字典
            // 工程结构现场检测
            // 工程结构现场检测之混凝土回弹
            {
                path: '/Control-1', //回弹检测结果管控——1
                name: 'Control-1',
                component: () =>
                    import('../views/PCManage/betonManage/Control-1.vue')
            },
            {
                path: '/Control-1Text', //回弹检测结果管控——1
                name: 'Control-1Text',
                component: () =>
                    import('../views/PCManage/betonManage/Control-1Text.vue')
            },

            {
                path: '/Control-2', //回弹检测结果管控——2
                name: 'Control-2',
                component: () =>
                    import('../views/PCManage/betonManage/Control-2.vue')
            },
            {
                path: '/Control-2Text', //回弹检测结果管控——2
                name: 'Control-2Text',
                component: () =>
                    import('../views/PCManage/betonManage/Control-2Text.vue')
            },
            {
                path: '/Control-3', //回弹检测结果管控——3
                name: 'Control-3',
                component: () =>
                    import('../views/PCManage/betonManage/Control-3.vue')
            },
            {
                path: '/Control-3Text', //回弹检测结果管控——3
                name: 'Control-3Text',
                component: () =>
                    import('../views/PCManage/betonManage/Control-3Text.vue')
            },
            {
                path: '/reboundUnqualifiedData', //回弹不合格数据
                name: 'reboundUnqualifiedData',
                component: () =>
                    import('../views/PCManage/betonManage/reboundUnqualifiedData/index.vue')
            },

            {
                path: '/betonprintPage', //钢筋保护层厚度检测数据统计
                name: 'betonprintPage',
                component: () =>
                    import('../views/PCManage/betonManage/betonprintPage.vue')
            },
            // 工程结构现场检测之混凝土回弹
            // 工程结构现场检测之钢筋保护层检测
            {
                path: '/Steel-1', //钢筋保护层检测——1--查看
                name: 'Steel-1',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-1.vue')
            },
            {
                path: '/Steel-1Text', //钢筋保护层检测——1--编辑
                name: 'Steel-1Text',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-1Text.vue')
            },
            {
                path: '/Steel-2', //钢筋保护层检测——2--查看
                name: 'Steel-2',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-2.vue')
            },
            {
                path: '/Steel-2Text', //钢筋保护层检测——2--编辑
                name: 'Steel-2Text',
                component: () =>
                    import('../views/PCManage/coverManage/Steel-2Text.vue')
            },
            {
                path: '/rebarUnqualifiedData', //钢筋保护层不合格数据
                name: 'rebarUnqualifiedData',
                component: () =>
                    import('../views/PCManage/coverManage/rebarUnqualifiedData/index.vue')
            },
            {
                path: '/coverprintPage', //钢筋保护层厚度检测数据统计
                name: 'coverprintPage',
                component: () =>
                    import('../views/PCManage/coverManage/coverprintPage.vue')
            },
            // 
            // 工程结构现场检测之钢筋保护层检测
            //工程结构现场检测之基桩工程检测管理

            {
                path: '/engineering', // 基桩工程信息
                name: 'Engineering',
                component: () =>
                    import('../views/PCManage/pieManage/engineering.vue')
            },
            {
                path: '/engineeringText',
                name: 'EngineeringText',
                component: () =>
                    import('../views/PCManage/pieManage/engineeringText.vue')
            },
            // 基桩检测信息
            {
                path: '/Monitoring',
                name: 'Monitoring',
                component: () =>
                    import('../views/PCManage/pieManage/Monitoring.vue')
            },
            {
                path: '/MonitoringText',
                name: 'MonitoringText',
                component: () =>
                    import('../views/PCManage/pieManage/MonitoringText.vue')
            },
            // 基桩检测统计
            {
                path: '/building',
                name: 'building',
                component: () =>
                    import('../views/PCManage/pieManage/jisManage/building.vue')
            },
            {
                path: '/section',
                name: 'section',
                component: () =>
                    import('../views/PCManage/pieManage/jisManage/section.vue')
            },
            {
                path: '/project',
                name: 'project',
                component: () =>
                    import('../views/PCManage/pieManage/jisManage/project.vue')
            },
            // 基桩检测统计
            //工程结构现场检测之基桩工程检测管理
            // 工程结构现场检测

            // 拌合站
            // 监管系统
            {
                path: '/supervisionList',
                name: 'supervision',
                component: () =>
                    import('../views/HntManage/supervisionList.vue')
            },
            // 闭合记录
            {
                path: '/closure',
                name: 'closure',
                component: () =>
                    import('../views/HntManage/closure.vue')
            },

            {
                path: '/printPage',
                name: 'printPage',
                component: () =>
                    import('../views/HntManage/printPage.vue')
            },

            //砼-配合比--查看
            {
                path: '/HntMixProportion',
                name: 'HntMixProportion',
                component: () =>
                    import('../views/HntManage/coordinate/HntMixProportion.vue')
            },
            //砼-配合比--编辑
            {
                path: '/HntMixProportionText',
                name: 'HntMixProportionText',
                component: () =>
                    import('../views/HntManage/coordinate/HntMixProportionText.vue')
            },
            //砼-场站塌陷度--查看
            {
                path: '/StationCollapse',
                name: 'StationCollapse',
                component: () =>
                    import('../views/HntManage/Station/StationCollapse.vue')
            },
            //砼-场站塌陷度--编辑
            {
                path: '/StationCollapseText',
                name: 'StationCollapseText',
                component: () =>
                    import('../views/HntManage/Station/StationCollapseText.vue')
            },
            //砼-现场塌陷度--查看
            {
                path: '/siteCollapse',
                name: 'siteCollapse',
                component: () =>
                    import('../views/HntManage/site/siteCollapse.vue')
            },
            //砼-现场塌陷度--编辑
            {
                path: '/siteCollapseText',
                name: 'siteCollapseText',
                component: () =>
                    import('../views/HntManage/site/siteCollapseText.vue')
            },
            //砼-设备检定--查看
            {
                path: '/EquipmentCalibration',
                name: 'EquipmentCalibration',
                component: () =>
                    import('../views/HntManage/Equipment/EquipmentCalibration.vue')
            },
            //砼-设备检定--编辑
            {
                path: '/EquipmentCalibrationText',
                name: 'EquipmentCalibrationText',
                component: () =>
                    import('../views/HntManage/Equipment/EquipmentCalibrationText.vue')
            },
            // 产能分析
            {
                path: '/deliverability',
                name: 'deliverability',
                component: () =>
                    import('../views/HntManage/bhManage/deliverability.vue')
            },
            // 材料用量分析
            {
                path: '/Consumption',
                name: 'Consumption',
                component: () =>
                    import('../views/HntManage/bhManage/Consumption.vue')
            },
            // 材料偏差走势
            {
                path: '/deviationTrend',
                name: 'deviationTrend',
                component: () =>
                    import('../views/HntManage/bhManage/deviationTrend.vue')
            },
            // 生产时间段分析
            {
                path: '/timePeriod',
                name: 'timePeriod',
                component: () =>
                    import('../views/HntManage/bhManage/timePeriod.vue')
            },
            // 混凝土产量统计
            {
                path: '/output',
                name: 'output',
                component: () =>
                    import('../views/HntManage/stManage/output.vue')
            }, // 混凝土超标统计
            {
                path: '/exceedance',
                name: 'exceedance',
                component: () =>
                    import('../views/HntManage/stManage/exceedance.vue')
            }, // 原材消耗统计
            {
                path: '/material',
                name: 'material',
                component: () =>
                    import('../views/HntManage/stManage/material.vue')
            },

            { // 生产用量
                path: '/productionAmount',
                name: 'productionAmount',
                component: () =>
                    import('../views/HntManage/pcManage/productionAmount.vue')
            },

            // { // 用量偏差
            //     path: '/dosageDeviation',
            //     name: 'dosageDeviation',
            //     component: () =>
            //         import('../views/HntManage/pcManage/dosageDeviation.vue')
            // },
            { //材料用量
                path: '/materialConsumption',
                name: 'materialConsumption',
                component: () =>
                    import('../views/HntManage/pcManage/materialConsumption.vue')
            },
            { //智能监控 联网状态
                path: '/networkStatus',
                name: 'networkStatus',
                component: () =>
                    import('../views/HntManage/controlManage/networkStatus.vue')
            },
            // 拌合站设置
            {
                path: '/mixingPlant',
                name: 'mixingPlant',
                component: () =>
                    import('../views/HntManage/TbhxtManage/mixingPlant.vue')
            },
            // 报警参数设置
            {
                path: '/alarmParameterSetting',
                name: 'alarmParameterSetting',
                component: () =>
                    import('../views/HntManage/TbhxtManage/alarmParameterSetting.vue')
            },
            // 预警通知人员对象
            {
                path: '/warningObject',
                name: 'warningObject',
                component: () =>
                    import('../views/HntManage/TbhxtManage/warningObject.vue')
            },
            // 预警短信模板
            {
                path: '/warningInformation',
                name: 'warningInformation',
                component: () =>
                    import('../views/HntManage/TbhxtManage/warningInformation.vue')
            },
            // 拌合站



            // 水稳
            {
                path: '/instantly', //水稳-实时监控
                name: 'instantly',
                component: () =>
                    import('@/views/WaterManage/trends/instantly.vue')
            },
            {
                path: '/superRecord', //水稳-超标记录
                name: 'superRecord',
                component: () =>
                    import('@/views/WaterManage/trends/superRecord.vue')
            },
            // {
            //     path: '/WaterClosure', //水稳-超标记录
            //     name: 'WaterClosure',
            //     component: () =>
            //         import('@/views/WaterManage/WaterClosure.vue')
            // },
            // 
            {
                path: '/WaterprintPage', //水稳-报表打印
                name: 'WaterprintPage',
                component: () =>
                    import('@/views/WaterManage/WaterprintPage.vue')
            },
            {
                path: '/waterProduce', //水稳-产能分析
                name: 'waterProduce',
                component: () =>
                    import('@/views/WaterManage/analyse/waterProduce.vue')
            },
            {
                path: '/waterConsumption', //水稳-材料用量
                name: 'waterConsumption',
                component: () =>
                    import('@/views/WaterManage/analyse/waterConsumption.vue')
            },
            {
                path: '/percentage', //水稳-材料百分比
                name: 'percentage',
                component: () =>
                    import('@/views/WaterManage/analyse/percentage.vue')
            }, {
                path: '/WaterDeviation', //水稳-材料偏差
                name: 'WaterDeviation',
                component: () =>
                    import('@/views/WaterManage/analyse/WaterDeviation.vue')
            },
            {
                path: '/waterOutput', //水稳-产量统计
                name: 'waterOutput',
                component: () =>
                    import('@/views/WaterManage/statistics/waterOutput.vue')
            },
            // {
            //     path: '/overstep', //水稳-超标统计
            //     name: 'overstep',
            //     component: () =>
            //         import('@/views/WaterManage/statistics/overstep.vue')
            // },
            // 
            {
                path: '/waterNetworkStatus', //水稳-原材料消耗
                name: 'waterNetworkStatus',
                component: () =>
                    import('@/views/WaterManage/waterControlManage/waterNetworkStatus.vue')
            },
            {
                path: '/waterMaterial', //水稳-水稳拌合机在线监控-水稳拌和机联网状态
                name: 'waterMaterial',
                component: () =>
                    import('@/views/WaterManage/statistics/waterMaterial.vue')
            },
            {
                path: '/networking', //水稳-联网状态
                name: 'networking',
                component: () =>
                    import('@/views/WaterManage/intellect/networking.vue')
            },
            {
                path: '/swMixingPlant', //水稳-系统设置
                name: 'swMixingPlant',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/swMixingPlant.vue')
            },
            {
                path: '/Equipment', //水稳-设备检定查看
                name: 'Equipment',
                component: () =>
                    import('@/views/WaterManage/Equipment/Equipment.vue')
            },
            {
                path: '/EquipmentText', //水稳-设备检定编辑
                name: 'EquipmentText',
                component: () =>
                    import('@/views/WaterManage/Equipment/EquipmentText.vue')
            },
            {
                path: '/swAlarmParameterSetting', //水稳-材料超标参数设置
                name: 'swAlarmParameterSetting',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/swAlarmParameterSetting.vue')
            },
            {
                path: '/sWwarningObject', //水稳-预警通知人员对象
                name: 'sWwarningObject',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/sWwarningObject.vue')
            },
            {
                path: '/sWwarningInformation', //水稳-预警短信模板
                name: 'sWwarningInformation',
                component: () =>
                    import('@/views/WaterManage/swHxtManage/sWwarningInformation.vue')
            },
            // 
            // {
            //     path: '/collection', //水稳-采集状态
            //     name: 'collection',
            //     component: () =>
            //         import('@/views/WaterManage/intellect/collection.vue')
            // },
            // {
            //     path: '/unusual', //水稳-异常提醒
            //     name: 'unusual',
            //     component: () =>
            //         import('@/views/WaterManage/intellect/unusual.vue')
            // },
            // 水稳
            // 沥青
            // 
            {
                // 报表打印
                path: '/pitchprintPage',
                name: 'pitchprintPage',
                component: () =>
                    import('@/views/pitchManage/pitchprintPage.vue')
            },
            // 动态监控
            {
                // 动态监控之实时监控
                path: '/real_timeMonitoring',
                name: 'real_timeMonitoring',
                component: () =>
                    import('@/views/pitchManage/dyMonitorManage/real_timeMonitoring.vue')
            },
            { // 动态监控之实时数据
                path: '/real_timeData',
                name: 'real_timeData',
                component: () =>
                    import('@/views/pitchManage/dyMonitorManage/real_timeData.vue')
            },

            { // 动态监控之误差分析
                path: '/errorMonitoring',
                name: 'errorMonitoring',
                component: () =>
                    import('@/views/pitchManage/dyMonitorManage/errorMonitoring.vue')
            },

            // 动态监控
            {
                //沥青设备查看
                path: '/lqEquipment',
                name: 'lqEquipment',
                component: () =>
                    import('@/views/pitchManage/Equipment/lqEquipment.vue')
            },
            {
                //沥青设备编辑
                path: '/lqEquipmentText',
                name: 'lqEquipmentText',
                component: () =>
                    import('@/views/pitchManage/Equipment/lqEquipmentText.vue')
            },

            // 数据分析之误差分析
            {
                path: '/errorAnalysis',
                name: 'errorAnalysis',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/errorAnalysis.vue')
            },
            // 数据分析之生产时间段分析
            {
                path: '/productionPeriod',
                name: 'productionPeriod',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/productionPeriod.vue')
            },
            // 数据分析之材料用量分析
            {
                path: '/materConsumption',
                name: 'materConsumption',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/materConsumption.vue')
            },
            // 数据分析之日统计
            {
                path: '/dayStatistics',
                name: 'dayStatistics',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/dayStatistics.vue')
            },
            // 数据分析之生产统计
            {
                path: '/productionStatistics',
                name: 'productionStatistics',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/productionStatistics.vue')
            },
            // // 数据分析之生产信息
            // {
            //     path: '/ProductionInformation',
            //     name: 'ProductionInformation',
            //     component: () =>
            //         import('@/views/pitchManage/dataAnalysisManage/ProductionInformation.vue')
            // },
            // 数据分析之报警数据处理
            {
                path: '/alarmData',
                name: 'alarmData',
                component: () =>
                    import('@/views/pitchManage/dataAnalysisManage/alarmData.vue')
            },

            // 智能检测之设备状态
            {
                path: '/equipmentStatus',
                name: 'equipmentStatus',
                component: () =>
                    import('@/views/pitchManage/intelligentManage/equipmentStatus.vue')
            },
            // 统计分析之原材统计
            {
                path: '/rawMaterial',
                name: 'rawMaterial',
                component: () =>
                    import('@/views/pitchManage/stAnalysisManage/rawMaterial.vue')
            },
            // 统计分析之产量统计
            {
                path: '/outputStatistics',
                name: 'outputStatistics',
                component: () =>
                    import('@/views/pitchManage/stAnalysisManage/outputStatistics.vue')
            },
            // 统计分析之月统计
            {
                path: '/monthStatistics',
                name: 'monthStatistics',
                component: () =>
                    import('@/views/pitchManage/stAnalysisManage/monthStatistics.vue')
            },
            // 基础设置之配合比管理
            {
                path: '/mixProportion',
                name: 'mixProportion',
                component: () =>
                    import('@/views/pitchManage/bsManage/mixProportion.vue')
            },

            // 系统设置之报警参数设置
            {
                path: '/lqAlarmParameterSetting',
                name: 'lqAlarmParameterSetting',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqAlarmParameterSetting.vue')
            },

            // 系统设置之短信预警模板
            {
                path: '/lqWarningInformation',
                name: 'lqWarningInformation',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqWarningInformation.vue')
            },
            // 系统设置之拌合站设置
            {
                path: '/lqMixingPlant',
                name: 'lqMixingPlant',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqMixingPlant.vue')
            },
            // 系统设置之预警通知对象人员
            {
                path: '/lqwarningObject',
                name: 'lqwarningObject',
                component: () =>
                    import('@/views/pitchManage/lqxtManage/lqwarningObject.vue')
            },


            // 沥青

            {
                // 班组---查看
                path: '/groupClass',
                name: 'groupClass',
                component: () =>
                    import('../views/QualityGridManage/group/groupClass.vue')
            },

            {
                // 班组---编辑
                path: '/groupClassText',
                name: 'groupClassText',
                component: () =>
                    import('../views/QualityGridManage/group/groupClassText.vue')
            },
            
            {
                // 班组---报表打印
                path: '/groupprintPage',
                name: 'groupprintPage',
                component: () =>
                    import('../views/QualityGridManage/group/groupprintPage.vue')
            },
            {
                // 第三方检查---查看
                path: '/ThreeCheck',
                name: 'ThreeCheck',
                component: () =>
                    import('../views/QualityGridManage/three/ThreeCheck.vue')
            },
            {
                // 第三方检查---编辑
                path: '/ThreeCheckText',
                name: 'ThreeCheckText',
                component: () =>
                    import('../views/QualityGridManage/three/ThreeCheckText.vue')
            },
            {
                // 工作指令--下发---查看
                path: '/distribute',
                name: 'distribute',
                component: () =>
                    import('../views/QualityGridManage/workOrder/distribute/distribute.vue')
            },
            {
                // 工作指令--下发---编辑
                path: '/distributeText',
                name: 'distributeText',
                component: () =>
                    import('../views/QualityGridManage/workOrder/distribute/distributeText.vue')
            },
            {
                // 工作指令--复查---查看
                path: '/execute',
                name: 'execute',
                component: () =>
                    import('../views/QualityGridManage/workOrder/execute/execute.vue')
            },
            {
                // 工作指令--复查---编辑
                path: '/executeText',
                name: 'executeText',
                component: () =>
                    import('../views/QualityGridManage/workOrder/execute/executeText.vue')
            },
            {
                // 工作指令--在线沟通---查看
                path: '/communicate',
                name: 'communicate',
                component: () =>
                    import('../views/QualityGridManage/workOrder/communicate/communicate.vue')
            },
            {
                // 工作指令--在线沟通---编辑
                path: '/communicateText',
                name: 'communicateText',
                component: () =>
                    import('../views/QualityGridManage/workOrder/communicate/communicateText.vue')
            },
            // //工序报验--完工--查看
            // {
            //     path: '/ProcessInspection',
            //     name: 'ProcessInspection',
            //     component: () =>
            //         import('../views/QualityGridManage/stationWork/ProcessInspection.vue')
            // },
            // //工序报验--完工--编辑
            // {
            //     path: '/ProcessInspectionText',
            //     name: 'ProcessInspectionText',
            //     component: () =>
            //         import('../views/QualityGridManage/stationWork/ProcessInspectionText.vue')
            // },
            {
                path: '/stationprintPage',
                name: 'stationprintPage',
                component: () =>
                    import('../views/QualityGridManage/stationWork/stationprintPage.vue')
            },
            //工序报验--上级单位
            {
                path: '/stationWorkSuperior',
                name: 'stationWorkSuperior',
                component: () =>
                    import('../views/QualityGridManage/stationWork/stationWorkSuperior.vue')
            },
            //工序报验-指定标段的查询页面
            {
                path: '/stationWorkList',
                name: 'stationWorkList',
                component: () =>
                    import('../views/QualityGridManage/stationWork/stationWorkList.vue')
            },
            {
                path: '/inspectionProcessStatus',
                name: 'inspectionProcessStatus',
                component: () =>
                    import('../views/QualityGridManage/stationWork/inspectionProcessStatus/index.vue')
            },
            // 
            //现场生产质量网格
            {
                path: '/stationQualityList',
                name: 'stationQualityList',
                component: () =>
                    import('../views/QualityGridManage/grid/stationQuality/stationQualityList.vue')
            },
            {
                path: '/stationQualityListText',
                name: 'stationQualityListText',
                component: () =>
                    import('../views/QualityGridManage/grid/stationQuality/stationQualityListText.vue')
            },
            //场站/实体开工管理
            {
                path: '/startLook',
                name: 'startLook',
                component: () =>
                    import('../views/QualityGridManage/grid/start/startLook.vue')
            },
            {
                path: '/startText',
                name: 'startText',
                component: () =>
                    import('../views/QualityGridManage/grid/start/startText.vue')
            },
            //质量管理责任网格
            {
                path: '/responsibility',
                name: 'responsibility',
                component: () =>
                    import('../views/QualityGridManage/grid/responsibilityGrid/responsibility.vue')
            },
            {
                path: '/responsibilityText',
                name: 'responsibilityText',
                component: () =>
                    import('../views/QualityGridManage/grid/responsibilityGrid/responsibilityText.vue')
            },
            
            //现场质量巡查管理--质量巡查信息管理--查看
            {
                path: '/patrolInformation',
                name: 'patrolInformation',
                component: () =>
                    import('../views/QualityGridManage/patrol/information/patrolInformation.vue')
            },

            //现场质量巡查管理--质量巡查信息管理--编辑
            {
                path: '/patrolInformationText',
                name: 'patrolInformationText',
                component: () =>
                    import('../views/QualityGridManage/patrol/information/patrolInformationText.vue')
            },
            //现场质量巡查管理--巡查整改反馈管理--查看
            {
                path: '/patrolRectification',
                name: 'patrolRectification',
                component: () =>
                    import('../views/QualityGridManage/patrol/rectification/patrolRectification.vue')
            },
            //现场质量巡查管理--巡查整改反馈管理--编辑
            {
                path: '/patrolRectificationText',
                name: 'patrolRectificationText',
                component: () =>
                    import('../views/QualityGridManage/patrol/rectification/patrolRectificationText.vue')
            },
            // 质量管理行为管理--质量网格责任管理--现场工作在线记录
            {
                path: '/onlineRecordWork',
                name: 'onlineRecordWork',
                component: () =>
                    import('../views/BehaViorManage/quality-G-R-Manage/onlineRecordWork/index.vue')
            },
            // 质量管理行为管理--质量网格责任管理--现场工作在线记录
            {
                path: '/onlineRecordWorkText',
                name: 'onlineRecordWorkText',
                component: () =>
                    import('../views/BehaViorManage/quality-G-R-Manage/onlineRecordWorkText/index.vue')
            },
            // 质量管理行为管理--质量网格责任管理--本周质量工作总结
            {
                path: '/qualityWorkWeek',
                name: 'qualityWorkWeek',
                component: () =>
                    import('../views/BehaViorManage/quality-G-R-Manage/qualityWorkWeek/index.vue')
            },
            // 质量管理行为管理--质量网格责任管理--本周质量工作总结
            {
                path: '/qualityWorkWeekText',
                name: 'qualityWorkWeekText',
                component: () =>
                    import('../views/BehaViorManage/quality-G-R-Manage/qualityWorkWeekText/index.vue')
            },
            // 质量管理行为管理--本周工作简报
            {
                path: '/workReportWeek',
                name: 'workReportWeek',
                component: () =>
                    import('../views/BehaViorManage/workReportWeek/index.vue')
            },
            // 质量管理行为管理--本周工作简报
            {
                path: '/workReportWeekText',
                name: 'workReportWeekText',
                component: () =>
                    import('../views/BehaViorManage/workReportWeekText/index.vue')
            },
            // 质量管理行为管理--年度工作情况--分子公司质量工作
            {
                path: '/ChildCompanyWork',
                name: 'ChildCompanyWork',
                component: () =>
                    import('../views/BehaViorManage/workYear/ChildCompanyWork/index.vue')
            },
            // 质量管理行为管理--年度工作情况--分子公司质量工作
            {
                path: '/ChildCompanyWorkText',
                name: 'ChildCompanyWorkText',
                component: () =>
                    import('../views/BehaViorManage/workYear/ChildCompanyWorkText/index.vue')
            },
            // 质量管理行为管理--年度工作情况--项目部质量工作
            {
                path: '/departmentWork',
                name: 'departmentWork',
                component: () =>
                    import('../views/BehaViorManage/workYear/departmentWork/index.vue')
            },
            // 质量管理行为管理--年度工作情况--项目部质量工作
            {
                path: '/departmentWorkText',
                name: 'departmentWorkText',
                component: () =>
                    import('../views/BehaViorManage/workYear/departmentWorkText/index.vue')
            },
            // 质量管理行为管理--年度工作情况--监理月报管理
            {
                path: '/supervisionMonthManage',
                name: 'supervisionMonthManage',
                component: () =>
                    import('../views/BehaViorManage/workYear/supervisionMonthManage/index.vue')
            },
            // 质量管理行为管理--年度工作情况--监理月报管理
            {
                path: '/supervisionMonthManageText',
                name: 'supervisionMonthManageText',
                component: () =>
                    import('../views/BehaViorManage/workYear/supervisionMonthManageText/index.vue')
            },
            // 质量管理行为管理--年度工作情况--试验室月报管理
            {
                path: '/laboratoryMonthManage',
                name: 'laboratoryMonthManage',
                component: () =>
                    import('../views/BehaViorManage/workYear/laboratoryMonthManage/index.vue')
            },
            // 质量管理行为管理--年度工作情况--试验室月报管理
            {
                path: '/laboratoryMonthManageText',
                name: 'laboratoryMonthManageText',
                component: () =>
                    import('../views/BehaViorManage/workYear/laboratoryMonthManageText/index.vue')
            },
            // 质量管理行为管理--分管领导考核--系统考核页面
            {
                path: '/systemExamineManage',
                name: 'systemExamineManage',
                component: () =>
                    import('../views/BehaViorManage/leaderExamineManage/systemExamineManage/index.vue')
            },
            // 质量管理行为管理--分管领导考核--安质环部门考核页面
            {
                path: '/departmentExamineManage',
                name: 'departmentExamineManage',
                component: () =>
                    import('../views/BehaViorManage/leaderExamineManage/departmentExamineManage/index.vue')
            },
            // 质量管理行为管理--分管领导考核--分子公司考核页面
            {
                path: '/childCompanyExamineManage',
                name: 'childCompanyExamineManage',
                component: () =>
                    import('../views/BehaViorManage/leaderExamineManage/childCompanyExamineManage/index.vue')
            },
            // 质量管理行为管理--分管领导考核--系统考核页面
            {
                path: '/systemExamineManageText',
                name: 'systemExamineManageText',
                component: () =>
                    import('../views/BehaViorManage/leaderExamineManage/systemExamineManageText/index.vue')
            },
            // 质量管理行为管理--分管领导考核--安质环部门考核页面
            {
                path: '/departmentExamineManageText',
                name: 'departmentExamineManageText',
                component: () =>
                    import('../views/BehaViorManage/leaderExamineManage/departmentExamineManageText/index.vue')
            },
            // 质量管理行为管理--分管领导考核--分子公司考核页面
            {
                path: '/childCompanyExamineManageText',
                name: 'childCompanyExamineManageText',
                component: () =>
                    import('../views/BehaViorManage/leaderExamineManage/childCompanyExamineManageText/index.vue')
            },
            // 质量管理行为管理--监理信用评价--信用评价清单
            {
                path: '/feedbackList',
                name: 'feedbackList',
                component: () =>
                    import('../views/BehaViorManage/creditAppraisalManage/feedbackList/index.vue')
            },
            // 质量管理行为管理--监理信用评价--信用评价清单
            {
                path: '/feedbackListText',
                name: 'feedbackListText',
                component: () =>
                    import('../views/BehaViorManage/creditAppraisalManage/feedbackListText/index.vue')
            },
            // 质量管理行为管理--监理信用评价--年度信用评价
            {
                path: '/annualCreditReview',
                name: 'annualCreditReview',
                component: () =>
                    import('../views/BehaViorManage/creditAppraisalManage/annualCreditReview/index.vue')
            },
            // 质量管理行为管理--监理信用评价--年度信用评价
            {
                path: '/annualCreditReviewText',
                name: 'annualCreditReviewText',
                component: () =>
                    import('../views/BehaViorManage/creditAppraisalManage/annualCreditReviewText/index.vue')
            },
            // 张拉压浆
            { //张拉--实时数据查询
                path: '/TensionRealTime',
                name: 'TensionRealTime',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionRealTime.vue')
            },
            { //张拉--超标数据查询
                path: '/TensionExceedData',
                name: 'TensionExceedData',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionExceedData.vue')
            },
            { //张拉--超标数据处理
                path: '/TensionExceedHandle',
                name: 'TensionExceedHandle',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionExceedHandle.vue')
            },
            { //张拉-系统设置--梁场信息设置
                path: '/TensionBeamYard',
                name: 'TensionBeamYard',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionBeamYard.vue')
            },
            { //张拉-系统设置--预警信息设置
                path: '/TensionEarlyWarning',
                name: 'TensionEarlyWarning',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionEarlyWarning.vue')
            },
            { //张拉-系统设置--预警人员设置
                path: '/TensionWarningPerson',
                name: 'TensionWarningPerson',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionWarningPerson.vue')
            },
            { //张拉-系统设置--预警短信模板管理
                path: '/TensionAlertTemplate',
                name: 'TensionAlertTemplate',
                component: () =>
                    import('../views/TensionAndGrout/TensionManage/TensionYjxtManage/TensionAlertTemplate.vue')
            },
            { //压浆--实时数据查询
                path: '/GroutRealTime',
                name: 'GroutRealTime',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutRealTime.vue')
            },
            { //压浆--超标数据查询
                path: '/GroutExceedData',
                name: 'GroutExceedData',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutExceedData.vue')
            },
            { //压浆--超标数据处理
                path: '/GroutExceedHandle',
                name: 'GroutExceedHandle',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutExceedHandle.vue')
            },
            { //压浆-系统设置--梁场信息设置
                path: '/GroutBeamYard',
                name: 'GroutBeamYard',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutBeamYard.vue')
            },
            { //压浆-系统设置--预警信息设置
                path: '/GroutEarlyWarning',
                name: 'GroutEarlyWarning',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutEarlyWarning.vue')
            },
            { //压浆-系统设置--预警人员设置
                path: '/GroutWarningPerson',
                name: 'GroutWarningPerson',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutWarningPerson.vue')
            },
            { //压浆-系统设置--预警短信模板管理
                path: '/GroutAlertTemplate',
                name: 'GroutAlertTemplate',
                component: () =>
                    import('../views/TensionAndGrout/GroutManage/GroutYjxtManage/GroutAlertTemplate.vue')
            },

            // 张拉压浆

            //系统管理 组织机构
            {
                path: '/mechanism',
                name: 'mechanism',
                component: () =>
                    import('../views/SysManage/BaseManage/mechanism.vue')
            },
            {
                path: '/department',
                name: 'department',
                component: () =>
                    import('../views/SysManage/BaseManage/department.vue')
            },
            {
                path: '/postManagement',
                name: 'postManagement',
                component: () =>
                    import('../views/SysManage/BaseManage/postManagement.vue')
            },
            {
                path: '/roleManagement',
                name: 'roleManagement',
                component: () =>
                    import('../views/SysManage/BaseManage/roleManagement.vue')
            }, {
                path: '/user',
                name: 'user',
                component: () =>
                    import('../views/SysManage/BaseManage/user.vue')
            },
            //拌合站数据推送查询列表页
            {
                path: '/pushingData',
                name: 'pushingData',
                component: () =>
                    import('../views/HistoricalPush/pushingData/index.vue')
            },
            //待办数据推送实时查询列表页
            {
                path: '/pushingNeedData',
                name: 'pushingNeedData',
                component: () =>
                    import('../views/HistoricalPush/pushingNeedData/index.vue')
            },
            //首页数据推送查询列表页
            {
                path: '/pushingHomeData',
                name: 'pushingHomeData',
                component: () =>
                    import('../views/HistoricalPush/pushingHomeData/index.vue')
            },
            // 数据字典主页面
            {
                path: '/dictionaryPage',
                name: 'DictionaryPage',
                component: () =>
                    import('../views/SysManage/dictionaryPage.vue')
            },
            // 系统功能
            {
                path: '/systemData',
                name: 'SystemData',
                component: () =>
                    import('../views/SysManage/systemData.vue')
            },




        ]
    }
]
const router = new VueRouter({
    routes
})
// 导航守卫
// 使用 router.beforeEach 注册一个全局前置守卫，判断用户是否登陆
router.beforeEach((to, from, next) => {
    //如果去往登录页则放行 
    if (to.path === '/') {
        next();
    } else if (to.path === '/loginfree') {
        next();
    } else if (to.path === '/loginHttps') {
        next();
    } else if (to.path === "/detailedCurv") {
        next();
    } else if (to.path === '/detailedClose') {
        next();
    } else if (to.path === '/patrolInformationDetail') {
        next();
    } else {
        // console.log(5555, localStorage.getItem('token'));
        // 从本地存储里获取token
        let token = sessionStorage.getItem('token');
        // 判断token是否为空如果为空则跳转到登录页 如果有则放行
        if (token === null || token === '') {
            next({
                path: '/'
            });
        } else {
            next();
        }
        let userInfo = sessionStorage.getItem('userInfo')
        if (userInfo === null || userInfo === '') {
            next({
                path: '/'
            });
        } else {
            next();
        }
    }
});

export default router